package com.sl.core.utils;

import lombok.Getter;
import lombok.Setter;

import java.util.LinkedHashMap;
import java.util.Map;

@Getter

@Setter
public class KeyValueBuilder {

    private String key;

    private Object value;

    private Map<String,Object> map = new LinkedHashMap<>();
    public static KeyValueBuilder builder(){
        return new KeyValueBuilder();
    }
    public KeyValueBuilder add(String key,Object value){
        this.map.put(key,value);
        return this;
    }
    public Map<String,Object> build(){
        return this.map;
    }
}
